package com.foreknow.dao;

import com.foreknow.bean.Employee;
import com.foreknow.bean.User;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface EmployeeMapper {

	List<Employee> selectEmployeeByIdLike(HashMap<String, Object> params);

	List<Employee> selectEmployeeByLoginLike(HashMap<String, Object> params);

	List<Employee> selectEmployeeChoose(HashMap<String, Object> params);

	List<Employee> findEmployeeLike(HashMap<String, Object> params);

	List<Employee> selectEmployeeLike(HashMap<String, Object> params);

	Employee selectEmployeeWithId(Integer id);

	void updateEmployeeIfNecessary(Employee employee);

	List<Employee> selectEmployeeIn(List<Integer> ids);

	List<Employee> selectEmployeeLikeName(Employee employee);

	/**
	 * 添加
	 * @param employee
	 */
	public void insertEmployee(Employee employee);

	/**
	 * 根据id删除用户信息
	 * @param id
	 */
	public void deleteEmployee(int id);

}
